package com.yz.gulimall.product.feign;

import com.yz.common.utils.R;
import com.yz.gulimall.product.vo.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yz
 * @create 2021-11-03 14:35
 */
@FeignClient("gulimall-ware")
public interface WareFeignSevice {
    //查询sku是否有库存
    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
